package com.truesai.pages.employee;

import org.apache.tapestry5.EventConstants;
import org.apache.tapestry5.annotations.OnEvent;
import org.apache.tapestry5.annotations.PageActivationContext;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.truesai.dal.CrudServiceDAO;
import com.truesai.entities.Hotel;
import com.truesai.entities.employee.Employee;
import com.truesai.pages.Book;

/**
 * 员工详细信息
 * @author XuLian
 */
public class EmployeeDetail {

	@SuppressWarnings("unused")
	@Property
	@PageActivationContext
	private Employee employee;

	@Inject
	private CrudServiceDAO dao;

	/**
	 * Start booking process.
	 * 
	 * @param hotel
	 * @return link to the current hotel booking
	 */
	@OnEvent(value = EventConstants.SUCCESS, component = "startBookingForm")
	Object startBooking(Hotel hotel)
	{
		return Book.class;
	}
}
